<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>{:input('ks')} - {:set('title')}</title>
    <meta name="description" content="{:set('description',1)}">
    <meta name="keywords" content=" {:set('keywords',1)}">
    {include file="header"}
    <div class="contain">
        <div class="wrap">
            <div class="ad">{:ad(2)}</div>
            <div class="con fn-clear">
                <ul class="fudong-nav">
                    <li class="active item {:dingyi($c['name'],'info')}"> 
                        <a href="{:url('index/index/cate')}">全部资讯 </a>
                    </li>
                    {foreach name=":fun_S('cate',array('tid'=>0),'px desc','1000',1)" item="v" key="k"}
                    <li class="active item {if $c.alias==$v.alias||$v.alias==fun_sc_p('cate', array('id'=>$c['tid']), 'alias')}info{/if}"> 
                        <a href="{:url('index/index/cate',array('alias'=>$v.alias))}">{$v.name}</a>
                        <div class="secondnac-box">
                            <ul class="second-nav"> 
                                {volist name=":fun_s('cate',array('tid'=>$v['id']),'px desc',100,1)" id="vo"}
                                <li class="on_nav {if $c.alias==$vo.alias}info{/if}"> 
                                    <a href="{:url('index/index/cate',array('alias'=>$vo.alias))}" title="{$vo.name}">{$vo.name}</a>
                                </li>
                                {/volist}  
                            </ul>
                        </div>
                    </li>
                    {/foreach}
                </ul>
                <script>
                $(document).scroll(function(){
                    var top =  $('.channel_mod').offset().top;
                    var left =  $('.channel_mod').offset().left;
                    if($(document).scrollTop()>top){
                        $('.fudong-nav').css({'left':left-180,'position':'fixed','z-index':'12'})
                    }else{
                        $('.fudong-nav').css({'left':'0','position':'absolute','z-index':'12'})
                    }
                });
                </script>
                <div class="channel_mod" style="min-height:636px;">
                    <div class="title">
                        <div class="top-title contact-us-title">搜索 "{:input('ks')}" 相关的文章</div>
                    </div>
                    <ul class="list nhc" id="newslist">
                        {volist name=":fun_so('html',array('open'=>1),input('ks'),15)" id="vo" empty="
                        <div class='empty' align='center'>
                            <img src='/public/img/empty.png'/>
                            <p>没有更多的记录</p>
                        </div>"}
                        <li class="item fn-clear">
                            {if getImgList($vo.content,0)}
                            <div class="picture">
                                <a href="{:url('index/index/html',array('id'=>$vo.id))}" target="_blank">
                                    <img src="{$vo.content|pic}" alt="">
                                </a>
                            </div>
                            {/if}
                            <div class="detail">
                                <h3><a href="{:url('index/index/html',array('id'=>$vo.id))}" target="_blank">{$vo.title}</a></h3>
                                <div class="tags"></div>
                                <div class="binfo cf">
                                    <div class="fl">
                                        <a href="{:url('index/index/html',array('id'=>$vo.id))}" class="souce">文化</a>
                                        <span class="time">{$vo.time|times}</span>
                                    </div>
                                    <div class="fr">
                                        <a href="{:url('index/index/html',array('id'=>$vo.id))}#pinglun" class="cmt" target="_blank">{:fun_st('comment', array('fid'=>$vo.id))}</a>
                                    </div>
                                </div>
                            </div>
                        </li>
                        {/volist}
                    </ul>
                    <div class="pagination">
                        {:fun_so('html',array('open'=>1),input('ks'),15)->render()}
                    </div>
                </div>
                 
                <div class="right-bar">
                    <div class="hour24-bar">
                        <div class="bar-tit">
                            <h2 class="f1"><span>热门资讯</span></h2>
                        </div>
                        <div class="bar-con">
                            <ul class="list">
                                {volist name=":fun_sd('html',array('f.open'=>1),$c['id'],'view desc','10',1)" id="vo"}
                                <li class="item ">
                                    <a href="{:url('index/index/html',array('id'=>$vo.id))}" target="_blank" class="fn-clear">
                                        <div class="pic">
                                            <img src="{$vo.content|pic}" alt="{$vo.title}">
                                        </div>
                                        <div class="txt">{$vo.title}</div>
                                    </a>
                                </li>
                                {/volist}
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    {include file="footer"}